﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SpriteAssets : ScriptableObject
{
    public int Id;

    public bool IsStatic;

    public Texture sourceTexture;

    public List<SpriteInfoGroup> groupList = new List<SpriteInfoGroup>();
}

[System.Serializable]
public class SpriteInfo
{
    public int Id;

    public string Name;

    public Vector2 Pivot;

    public Rect Rect;

    public Sprite Sprite;

    public string Tag;

    public Vector2[] UV = new Vector2[4];
}


[System.Serializable]

public class SpriteInfoGroup
{
    public string Tag = "";
    public List<SpriteInfo> ListSpriteInfos = new List<SpriteInfo>();

    public float Width = 1.0f;
    public float Size = 30.0f;
}